<?php

$url = $this->url('user/process', array('controller' => 'index', 'action' => 'index'));

$parameterGet = $this->request_helper();

if ($parameterGet != "")
{
  $parameterGet = "?".$parameterGet;
}
?>
 
<?php if ($this->pageCount): ?>

<div class="paginationControl">
    <p>
      <!--<div style="float:left">-->
      
      <!-- Previous page link -->
      <?php if (isset($this->previous)): ?>
     	<a class="first" href="<?php echo $url.'/1'; ?>">&lt;&lt; first&nbsp;&nbsp;</a>
     	<a class="Previous" href="<?php echo $url.'/'.$this->previous.$parameterGet; ?>">&lt; prev&nbsp;&nbsp;</a>      
      <?php else: ?>
      
      	<!-- This is the first page -->
      	<b><i>&lt;&lt; first&nbsp;&nbsp;</i></b>
     	<b><i>&lt; prev&nbsp;&nbsp;</i></b>  
          
      <?php endif; ?>
      
      <?php foreach ($this->pagesInRange as $page): ?>
      
	      <?php if ($page != $this->current): ?>
	        <a class="nopage" href="<?php echo $url.'/'.$page.$parameterGet; ?>"><?php echo $page;?></a>&nbsp;
	      <?php else: ?>
	            <span class="nopage"><?php echo $page; ?></span>
	      <?php endif; ?>
      
      <?php endforeach; ?>
      
      <?php if (isset($this->next)): ?>
      	<a class="next" href="<?php echo $url.'/'.$this->next.$parameterGet; ?>">&nbsp;next &gt;</a>
      	<a class="next" href="<?php echo $url.'/'.$this->pageCount.$parameterGet; ?>">&nbsp;last &gt;&gt;</a>
      <?php else: ?>    
            
       	<b><i>&nbsp;next &gt;&nbsp;</i></b>
       	<b><i>&nbsp;last &gt;&gt;&nbsp;</i></b>
       	
      <?php endif; ?>
    </p>
</div>
<?php endif; ?>